//
//  MessageOrderTableViewCell.m
//  ShangAPP
//
//  Created by 徐番茄丶 on 16/1/23.
//  Copyright © 2016年 wangdao. All rights reserved.
//

#import "MessageOrderTableViewCell.h"
#import "MyTools.h"
@implementation MessageOrderTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self viewCreate];
    }
    return self;
}

-(void)viewCreate{
    //50
    _titleLab = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, 90 * MYWIDTH, 30)];
    _titleLab.font = [UIFont systemFontOfSize:15];
    _titleLab.textColor = UIColorFromRGB(0x333333);
    _titleLab.textAlignment = NSTextAlignmentLeft;
    [self addSubview:_titleLab];
    
    _messageLab = [[UILabel alloc]initWithFrame:CGRectMake(100 * MYWIDTH, 10, WIDTH - 90, 30)];
    _messageLab.font = [UIFont systemFontOfSize:14];
    _messageLab.textAlignment = NSTextAlignmentLeft;
    _messageLab.textColor = UIColorFromRGB(0x333333);
    [self addSubview:_messageLab];
    
    _moneyLab = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH - 140, 10, 130, 30)];
    _moneyLab.font = [UIFont systemFontOfSize:15];
    _moneyLab.textAlignment = NSTextAlignmentRight;
    _moneyLab.textColor = UIColorFromRGB(0x333333);
    [self addSubview:_moneyLab];
    
    _lineview = [[UIView alloc]initWithFrame:CGRectMake(0, 49, WIDTH, 0.6)];
    _lineview.backgroundColor = UIColorFromRGB(0xE0E0E0);
    [self addSubview:_lineview];
    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
